import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './style/common.css'
import './style/headNav.css'
import $ from 'jquery'
import axios from 'axios'
import './lib/jquery.cookie.js'
import VueResource from 'vue-resource'
import store from './vuex/store.js'
Vue.config.productionTip = false
Vue.use( ElementUi )
Vue.use(VueResource)
Vue.prototype.getConfigJson=function(){
    axios.get("serverconfig.json").then((result)=>{
    	localStorage.setItem('ApiUrl',result.data.ApiUrl)
    }).catch((error)=>{console.log(error)});
}
Vue.prototype.$ajax = axios
/* eslint-disable no-new */
let vx = new Vue({
  el: '#app',
  router,
   store,
  components: { App },
  template: '<App/>',
})
